package com.power.sifa.correction.api;

import com.plf.common.domain.ResponseDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import com.power.sifa.correction.model.Apl_condeploy_cert;
import com.power.sifa.correction.model.pageInfo.Apl_condeploy_certPageInfo;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 *  社区矫正人员布控主表 Feign
 */
public interface IApl_condeploy_certFeign {

    /**
     * 社区矫正人员布控主表分页列表
     */
    @PostMapping("/apl_condeploy_cert/list")
    ResponseDTO list(@RequestBody Apl_condeploy_certPageInfo apl_condeploy_certPageInfo);

    /**
    * 查看社区矫正人员布控主表
    */
    @GetMapping("/apl_condeploy_cert/view")
    ResponseDTO view(@RequestParam("id") String id);

    /**
    * 删除社区矫正人员布控主表
    */
    @PostMapping("/apl_condeploy_cert/delete")
    ResponseDTO delete(@RequestParam("id") String id);

    ///**
    // * 查看社区矫正人员布控主表 复合主键使用
    // */
    //@PostMapping("/apl_condeploy_cert/viewByPK")
    //ResponseDTO viewByPK(@RequestBody Apl_condeploy_cert.Apl_condeploy_certPK pk);

    /**
     * 修改或保存社区矫正人员布控主表
     */
    @PostMapping("/apl_condeploy_cert/save")
    ResponseDTO save(@RequestBody Apl_condeploy_cert  apl_condeploy_cert);

    ///**
    // * 删除社区矫正人员布控主表 复合主键使用
    // */
    //@PostMapping("/apl_condeploy_cert/deleteByPK")
    //ResponseDTO deleteByPK(@RequestBody Apl_condeploy_cert.Apl_condeploy_certPK pk);

    /**
     * 批量删除社区矫正人员布控主表
     */
    @PostMapping("/apl_condeploy_cert/batchDel")
    ResponseDTO batchDel(@RequestParam("ids") String ids);

     /**
     * 导出excel
     */
    @PostMapping("/apl_condeploy_cert/output")
    void output(HttpServletResponse response, @RequestBody Apl_condeploy_certPageInfo apl_condeploy_certPageInfo);

     /**
     * 导出excel模板
     */
    @PostMapping("/apl_condeploy_cert/exportExcelTemplate")
    void exportExcelTemplate(HttpServletResponse response);

     /**
     *	导入excel
     */
    @PostMapping("/apl_condeploy_cert/importExcel")
    ResponseDTO importExcel(@RequestBody MultipartFile file) throws IOException ;

}
